
/* 谷歌字体 */
/* @import url("http://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"); */

/* @charset"UTF-8"; */
:root{
    --nav-width:92px;

    /* 自定义颜色 */
    --first-color:skyblue;
    --bg-color:#ddd;
    --sub-color:rgba(255, 17, 17, 0.726);
    --black-color:#000;
    /* 自定义字体 */
    --body-font:'Poppins',sans-serif;
    --normal-font-size:1rem;
    --smal-font-size:0.875rem;

    --z-fixed:100;

}

*,::before,::after{
    box-sizing: border-box;
}

body{
    position:relative;
    margin: 0;
    padding:2rem 0 0 6.75rem;
    font-family:var(--body-font);
    font-size: var(--normal-font-size);
    transition:.5s;
}

h1{
    margin:0;
}

ul{
    margin:0;
    padding:0;
    list-style-type: none;
}


/* 左侧菜单 */
.left-navbar{
    position:fixed;
    /* display:flex; */
    top:0;
    left:0;
    /* width:188px; */
    width:var(--nav-width);
    height: 100vh;
    background-color:var(--bg-color);
    color: var(--black-color);
    padding:1.5rem 1.5rem 2rem;
    transition:0.5s;
    z-index:var(--z-fixed);
    /*  */

}

.nav{
    height: 100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    overflow:hidden;
    /* align-items: center;
    margin-bottom: 2rem; */
}

.nav_brand{
    display:grid;
    grid-template-columns: max-content max-content;
    justify-content: space-between;
    align-items: center;
    margin-bottom:2rem;


}

.nav_toggle{
    font-size: 1.25rem;
    padding:0.75rem;
    cursor:pointer;
}

.nav_logo{
    color:var(--black-color);
    font-weight: 600;
}

.nav_link{
    display: grid;
    /* display: flex; */
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 0.75rem;
    padding:0.75rem;
    color:var(--black-color);
    border-radius: .5rem;
    margin-bottom:1rem;
    transition:.3s;
    cursor:pointer;

}

.nav_link:hover{
    background-color: var(--first-color);
}

.nav_icon{
    font-size:1.25rem;
    color:var(--black-color);
}

.nav_name{
    white-space: nowrap;
    font-size:var(--smal-font-size);
}

.expander{
    width:calc(var(--nav-width) + 9.25rem);
}

.body-pd{
    padding:2rem 0 0 16rem;
}

.active{
    background-color:var(--first-color);
}

.collapse{
    grid-template-columns: 20px max-content 1fr;
}

.collapse__link{
    justify-content: flex-end;
    transition:.5s;
}

.collapse_menu{
    display:none;
    padding:0.75rem 2.25rem;
}

.collapse__sublink{
    white-space: nowrap;
    /* width: 200px; */
    color:var(--black-color);
    font-size:var(--smal-font-size);
}

.collapse__sublink:hover{
    width:150px;
    color:var(--sub-color);
}

.showCollapse{
    display:block;
}
.rotate{
    transform:rotate(180deg);
}





/* 右侧管理界面 */
/* .background{
    display: flex;
} */
.rightmenu{
    /* margin-left: 18%; */
    display:flex;
    flex-direction: column;
    justify-content: center;
}

/* .bookmenutitle{
    position: relative;
    width: 100%;
    height: 100px;
    text-align:center;
} */

.rightmenu .bookmenutitle h1{

    text-align:center;
    /* margin-right:200px; */
    font-size: 54px;
    /* flex-wrap: warp; */
    /* color:#0c5df4 */
}


.addition{
    display: flex;
    justify-content: center;
}

.addition li{
    font-size:20px;
    font-weight: 700;
}

.addition input{
    margin-right:20px;
    margin-top:30px;
    width: 150px;
    height: 36px;
    border-radius: 5px;
    text-align: center;

}

.addition .addbook{
    width: 150px;
    height: 36px;
    border-radius: 5px;

}

.addition button{
    margin-right: 0px;
    width: 150px;
    height: 36px;
}

.search{
    display: flex;
    justify-content: center;
}

.search input{
    margin-right:10px;
    width: 270px;
    height: 36px;
    border-radius: 5px;
    text-align: center;
}
.search button{
    /* margin-left:15px; */
    /* margin-right: 200px; */
    width: 125px;
    height: 36px;
    border-radius: 5px;
}

.booksshow{
    display: flex;
    justify-content: center;

}

.booksshow table{
    justify-content: center;
}
.booksshow th{
    width: 200px;
    height: 50px;
}
.booksshow td{
    text-align: center;
    height: 40px;
    margin-right:20px;
}

/* table{
    background-color: #fff;
}